package com.myz.springboot2.xml.domain;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "目录文件")
@XmlAccessorType(XmlAccessType.FIELD)
public class FolderWrapper implements CatalogueWrapper<Folder> {

    @XmlElement(name = "案卷")
    private final List<Folder> folders = new ArrayList<>();

    /**
     * 获取案卷列表
     *
     * @return 案卷列表
     */
    @Override
    public List<Folder> getRecords() {
        return folders;
    }
}